<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input v-model="chk" type="checkbox">同意

        <div>
            <h3>选择自己的兴趣爱好</h3>
            <input v-model="hobby" value="sing" type="checkbox">唱
            <br>
            <input v-model="hobby" value="dance" type="checkbox">跳
            <br>
            <input v-model="hobby" value="rap" type="checkbox">rap
            <br>
            <input v-model="hobby" value="basketball" type="checkbox">打篮球
        </div>
    </div>
    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                chk: true,
                hobby: ['rap']
            }
        })
    </script>
</body>
</html>